/**
 * ReportGear(2011)
 */
package com.reportgear.report.model.headerfooter;

import javax.swing.Icon;

import com.reportgear.core.util.ImageUtils;
import com.reportgear.report.model.cell.style.FontStyle;

/**
 * 页眉页脚元素-分组总页数
 * 
 * @version 1.0 2011-4-22
 * @author <a herf="lexloo@gmail.com">lexloo</a>
 * @since Report 1.0
 */
public class GroupTotalPagesHFElement extends TextHFElement {
	public GroupTotalPagesHFElement() {
		this(FontStyle.DEFAULT_STYLE);
	}

	public GroupTotalPagesHFElement(FontStyle fontStyle) {
		super("", fontStyle);

		this.type = HFElement.TYPE_GROUP_TOTAL_PAGES;
	}

	@Override
	public String getCaption() {
		return "分组总页数";
	}

	@Override
	public Icon getIcon() {
		return ImageUtils.readIcon("/resources/images/dialog/headerfooter/pages.png");
	}
}
